
/*
 * @Author: cl
 * @Description: 命名空间
 * @Date: 2023-03-30 14:45:15
 * @LastEditTime: 2023-04-28 13:32:21
 * @FilePath: \jsnode\typescript\namespace.ts
 * @LastEditors: cl
 */

// import { namespaceAA } from "./namespaceA";


function test(name:string,age:number){
        return age
    }

namespace test{
    export let wName:string  = 'liu'

    export let test = (name:string,sex:string)=>{
        return name
    }
}
// let test = (name:string,age:number)=>{
//     return age
// }
// let nameA = namespaceAA.cName;
// console.log(`${nameA}今年${namespaceAA.cAge}`);
// console.log(namespaceAA.nameqiantao.myName);
console.log(test.test('zhangsan','sd'));
console.log(test('zhangsan',18));



